package com.ruoyi.performance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.performance.mapper.SysPerformanceAppraisalMapper;
import com.ruoyi.performance.domain.SysPerformanceAppraisal;
import com.ruoyi.performance.service.ISysPerformanceAppraisalService;

/**
 * 考核项目管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-23
 */
@Service
public class SysPerformanceAppraisalServiceImpl implements ISysPerformanceAppraisalService 
{
    @Autowired
    private SysPerformanceAppraisalMapper sysPerformanceAppraisalMapper;

    /**
     * 查询考核项目管理
     * 
     * @param id 考核项目管理主键
     * @return 考核项目管理
     */
    @Override
    public SysPerformanceAppraisal selectSysPerformanceAppraisalById(Long id)
    {
        return sysPerformanceAppraisalMapper.selectSysPerformanceAppraisalById(id);
    }

    /**
     * 查询考核项目管理列表
     * 
     * @param sysPerformanceAppraisal 考核项目管理
     * @return 考核项目管理
     */
    @Override
    public List<SysPerformanceAppraisal> selectSysPerformanceAppraisalList(SysPerformanceAppraisal sysPerformanceAppraisal)
    {
        return sysPerformanceAppraisalMapper.selectSysPerformanceAppraisalList(sysPerformanceAppraisal);
    }

    /**
     * 新增考核项目管理
     * 
     * @param sysPerformanceAppraisal 考核项目管理
     * @return 结果
     */
    @Override
    public int insertSysPerformanceAppraisal(SysPerformanceAppraisal sysPerformanceAppraisal)
    {
        return sysPerformanceAppraisalMapper.insertSysPerformanceAppraisal(sysPerformanceAppraisal);
    }

    /**
     * 修改考核项目管理
     * 
     * @param sysPerformanceAppraisal 考核项目管理
     * @return 结果
     */
    @Override
    public int updateSysPerformanceAppraisal(SysPerformanceAppraisal sysPerformanceAppraisal)
    {
        return sysPerformanceAppraisalMapper.updateSysPerformanceAppraisal(sysPerformanceAppraisal);
    }

    /**
     * 批量删除考核项目管理
     * 
     * @param ids 需要删除的考核项目管理主键
     * @return 结果
     */
    @Override
    public int deleteSysPerformanceAppraisalByIds(Long[] ids)
    {
        return sysPerformanceAppraisalMapper.deleteSysPerformanceAppraisalByIds(ids);
    }

    /**
     * 删除考核项目管理信息
     * 
     * @param id 考核项目管理主键
     * @return 结果
     */
    @Override
    public int deleteSysPerformanceAppraisalById(Long id)
    {
        return sysPerformanceAppraisalMapper.deleteSysPerformanceAppraisalById(id);
    }

    @Override
    public List<SysPerformanceAppraisal> getAssessmentItems() {
        return sysPerformanceAppraisalMapper.getAssessmentItems();
    }
}
